/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.Date;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2024-05-06
**/
@Entity
@Data
@Table(name="BIS_ZHSQ_CY")
public class ZhsqCy implements Serializable {

    @Id
    @Column(name = "BIS_ZHSQ_ID")
    @ApiModelProperty(value = "居家照护申请ID")
    private Long bisZhsqId;

    @Column(name = "BIS_ZHSQ_HLJG_ID")
    @ApiModelProperty(value = "护理机构ID")
    private String bisZhsqHljgId;

    @Column(name = "BIS_ZHSQ_SNRY_ID")
    @ApiModelProperty(value = "失能人员ID")
    private String bisZhsqSnryId;

    @Column(name = "BIS_ZHSQ_SNRY_XM")
    @ApiModelProperty(value = "姓名")
    private String bisZhsqSnryXm;

    @Column(name = "BIS_ZHSQ_SNRY_XB")
    @ApiModelProperty(value = "性别")
    private String bisZhsqSnryXb;

    @Column(name = "BIS_ZHSQ_SNRY_SFZ")
    @ApiModelProperty(value = "身份证")
    private String bisZhsqSnrySfz;

    @Column(name = "BIS_ZHSQ_SNRY_YBSSQX")
    @ApiModelProperty(value = "医保所属区县")
    private String bisZhsqSnryYbssqx;

    @Temporal(TemporalType.DATE)
    @Column(name = "BIS_ZHSQ_DYKKRQ")
    @ApiModelProperty(value = "待遇开始日期")
    private Date bisZhsqDykkrq;

    @Temporal(TemporalType.DATE)
    @Column(name = "BIS_ZHSQ_DYJSRQ")
    @ApiModelProperty(value = "待遇结束日期")
    private Date bisZhsqDyjsrq;

    @Column(name = "BIS_ZHSQ_XSDYQ")
    @ApiModelProperty(value = "享受待遇期")
    private String bisZhsqXsdyq;

    @Column(name = "BIS_ZHSQ_ADL")
    @ApiModelProperty(value = "ADL量表评分")
    private String bisZhsqAdl;

    @Column(name = "BIS_ZHSQ_ZT")
    @ApiModelProperty(value = "申请状态")
    private String bisZhsqZt;

    @Column(name = "YWLX")
    @ApiModelProperty(value = "业务类型")
    private String ywlx;

    @Column(name = "LRR")
    @ApiModelProperty(value = "录入人")
    private Long lrr;

    @Column(name = "LRRXM")
    @ApiModelProperty(value = "录入人姓名")
    private String lrrxm;

    @Column(name = "LRBM")
    @ApiModelProperty(value = "录入人部门")
    private Long lrbm;

    @Column(name = "LRBMMC")
    @ApiModelProperty(value = "录入人部门名称")
    private String lrbmmc;

    @Column(name = "LRSJ")
    @ApiModelProperty(value = "录入时间")
    private Timestamp lrsj;

    @Column(name = "GXR")
    @ApiModelProperty(value = "更新人")
    private Long gxr;

    @Column(name = "GXRXM")
    @ApiModelProperty(value = "更新人姓名")
    private String gxrxm;

    @Column(name = "GXBM")
    @ApiModelProperty(value = "更新人部门")
    private Long gxbm;

    @Column(name = "GXBMMC")
    @ApiModelProperty(value = "更新人部门名称")
    private String gxbmmc;

    @Column(name = "GXSJ")
    @ApiModelProperty(value = "更新时间")
    private Timestamp gxsj;

    @Column(name = "SFYX")
    @ApiModelProperty(value = "是否有效")
    private String sfyx;

    @Column(name = "BZ")
    @ApiModelProperty(value = "备注")
    private String bz;

    @Column(name = "BIS_ZHSQ_ADL_PC")
    @ApiModelProperty(value = "ADL批次主键ID")
    private String bisZhsqAdlPc;

    @Column(name = "BIS_ZHSQ_SNDJ")
    @ApiModelProperty(value = "失能等级")
    private String bisZhsqSndj;

    @Column(name = "BIS_ZHSQ_RYBH")
    @ApiModelProperty(value = "人员编号")
    private String bisZhsqRybh;

    @Column(name = "BIS_ZHSQ_NL")
    @ApiModelProperty(value = "年龄")
    private String bisZhsqNl;

    @Column(name = "BIS_ZHSQ_LXDH")
    @ApiModelProperty(value = "联系电话")
    private String bisZhsqLxdh;

    @Column(name = "BIS_ZHSQ_HLDZ_SSQX")
    @ApiModelProperty(value = "护理地址所在区县")
    private String bisZhsqHldzSsqx;

    @Column(name = "BIS_ZHSQ_HLDZ_XXDZ")
    @ApiModelProperty(value = "详细地址")
    private String bisZhsqHldzXxdz;

    @Column(name = "BIS_ZHSQ_HLDZ")
    @ApiModelProperty(value = "护理地址")
    private String bisZhsqHldz;

    @Column(name = "BIS_ZHSQ_JHRXM")
    @ApiModelProperty(value = "监护人姓名")
    private String bisZhsqJhrxm;

    @Column(name = "BIS_ZHSQ_JHRDH")
    @ApiModelProperty(value = "监护人电话")
    private String bisZhsqJhrdh;

    @Column(name = "BIS_ZHSQ_GX")
    @ApiModelProperty(value = "与失能人员关系")
    private String bisZhsqGx;

    @Column(name = "BIS_ZHSQ_SQYY")
    @ApiModelProperty(value = "申请原因")
    private String bisZhsqSqyy;

    @Column(name = "BIS_ZHSQ_YBKH")
    @ApiModelProperty(value = "医保卡号")
    private String bisZhsqYbkh;

    @Column(name = "BIS_ZHSQ_CBZT")
    @ApiModelProperty(value = "参保状态")
    private String bisZhsqCbzt;

    @Column(name = "BIS_USER_ID")
    @ApiModelProperty(value = "用户ID")
    private Long bisUserId;

    @Column(name = "BIS_SBGS_ID")
    @ApiModelProperty(value = "商保公司ID")
    private String bisSbgsId;

    @Column(name = "BIS_ZHSQ_GRBH")
    @ApiModelProperty(value = "医保个人编号")
    private String bisZhsqGrbh;

    @Column(name = "BIS_PGGS_ID")
    @ApiModelProperty(value = "评估公司ID")
    private String bisPggsId;

    @Column(name = "BIS_ZHSQ_ZHLB")
    @ApiModelProperty(value = "照护类别（居家和机构）")
    private String bisZhsqZhlb;

    @Column(name = "BIS_ZHSQ_HLJG_BM")
    @ApiModelProperty(value = "护理机构编码")
    private String bisZhsqHljgBm;

    @Column(name = "BIS_ZHSQ_CBLX")
    @ApiModelProperty(value = "参保类型")
    private String bisZhsqCblx;

    @Column(name = "BIS_ZHSQ_SQLB")
    @ApiModelProperty(value = "申请类别")
    private String bisZhsqSqlb;

    @Temporal(TemporalType.DATE)
    @Column(name = "BIS_ZHSQ_TJSJ")
    @ApiModelProperty(value = "提交时间")
    private Date bisZhsqTjsj;

    @Column(name = "BIS_ZHSQ_JBR")
    @ApiModelProperty(value = "经办人")
    private Long bisZhsqJbr;

    @Column(name = "BIS_ZHSQ_JBRXM")
    @ApiModelProperty(value = "经办人姓名")
    private String bisZhsqJbrxm;

    @Column(name = "BIS_ZHSQ_CYZT")
    @ApiModelProperty(value = "存疑状态")
    private String bisZhsqCyzt;

    @Column(name = "BIS_ZHSQ_JBSJ")
    @ApiModelProperty(value = "经办时间")
    private Date bisZhsqJbsj;



    public void copy(ZhsqCy source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}